package admin

import (
	auto "{{ appName }}/app/{{ table.path }}/auto/controller"
	"beergo/app/{{ table.path }}/conf"
	"github.com/beego/beego/v2/server/web"
)

type {{ table.name }}MongoDbAdminController struct {
	auto.{{ table.name }}MongoDbController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/:id", 		&{{ table.name }}MongoDbAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/list", 	    &{{ table.name }}MongoDbAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/create", 	    &{{ table.name }}MongoDbAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/update", 	    &{{ table.name }}MongoDbAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/put", 	    &{{ table.name }}MongoDbAdminController{}, "*:PutAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/copy", 	    &{{ table.name }}MongoDbAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/delete", 	    &{{ table.name }}MongoDbAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/{{ table.name }}/choice",      &{{ table.name }}MongoDbAdminController{}, "*:ChoiceAction")
}
//func (this *{{ table.name }}MongoDbAdminController) Prepare() {}
//func (this *{{ table.name }}MongoDbAdminController) ListAction() {}
//func (this *{{ table.name }}MongoDbAdminController) GetAction() {}
//func (this *{{ table.name }}MongoDbAdminController) CreateAction() {}
//func (this *{{ table.name }}MongoDbAdminController) UpdateAction() {}
//func (this *{{ table.name }}MongoDbAdminController) PutAction() {}
//func (this *{{ table.name }}MongoDbAdminController) CopyAction() {}
//func (this *{{ table.name }}MongoDbAdminController) DeleteAction() {}
//func (this *{{ table.name }}MongoDbAdminController) ChoiceAction() {}
